package com.woniuxy.controller.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.Email;
import javax.validation.constraints.Pattern;

@Data
public class RepairpeopleForm {

    @ApiModelProperty("用户名")
    private String accountName;

    @ApiModelProperty("手机号")
    @Pattern(regexp = "1[3|4|5|7|8][0-9]\\d{8}")
    private String accountPhone;

    @Email
    @ApiModelProperty("邮箱")
    private String accountEmail;

    @ApiModelProperty("所属公司id")
    private Integer company;

    @ApiModelProperty("所属区域id")
    private Integer area;

}
